home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 5
/
The 640 Meg Shareware Studio CD-ROM Volume V (Data Express)(1994).ISO
/
amiga
/
avm1_19.lha
/
rexx
/
broadcast.avm
< prev
next >
Wrap
Text File
|
1994-04-06
|
2KB
|
98 lines
/* to broadcast to interested parties about changes in mailboxes */
/* action = 'addtomailbox', 'deletefrommailbox', 'refreshmailbox', 'refreshmailboxentry' */
parse arg action mailbox magiccookie .
call addlib("rexxsupport.library", 0, -30, 0)
/* who are interested? AVMCALLNOTIFIER, AVMLOGVIEW.#? */
/* Assume MAX of 10 AVMLOGVIEWs */
if action = 'addtomailbox' | action = 'deletefrommailbox' then do
if showlist('p', 'AVMCALLNOTIFIER') then
address 'AVMCALLNOTIFIER' action mailbox magiccookie
do i = 1 to 10
a = 'AVMLOGVIEW.' || i
if showlist('p', a) then do
address value a
''action mailbox magiccookie
end
end
do i = 1 to 10
a = 'AVMSCHEDULER.' || i
if showlist('p', a) then do
address value a
''action mailbox magiccookie
end
end
do i = 1 to 10
a = 'AVMSCHEDULERVIEW.' || i
if showlist('p', a) then do
address value a
''action mailbox magiccookie
end
end
end
if action = 'refreshmailbox' then do
if showlist('p', 'AVMCALLNOTIFIER') then
address 'AVMCALLNOTIFIER' action mailbox
do i = 1 to 10
a = 'AVMLOGVIEW.' || i
if showlist('p', a) then do
address value a
''action mailbox
end
end
if showlist('p', 'AVMSCHEDULER') then
address 'AVMSCHEDULER' action mailbox
do i = 1 to 10
a = 'AVMSCHEDULER.' || i
if showlist('p', a) then do
address value a
''action mailbox
end
end
do i = 1 to 10
a = 'AVMSCHEDULERVIEW.' || i
if showlist('p', a) then do
address value a
''action mailbox
end
end
end
if action = 'refreshmailboxentry' then do
do i = 1 to 10
a = 'AVMLOGVIEW.' || i
if showlist('p', a) then do
address value a
''action mailbox magiccookie
end
end
do i = 1 to 10
a = 'AVMSCHEDULER.' || i
if showlist('p', a) then do
address value a
''action mailbox magiccookie
end
end
do i = 1 to 10
a = 'AVMSCHEDULERVIEW.' || i
if showlist('p', a) then do
address value a
''action mailbox magiccookie
end
end
end